package cc.ilzy.mall.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "地址添加对象", description = "地址添加请求对象")
@Data
public class AddressAddRequest {
    @ApiModelProperty(value = "默认状态", example = "1")
    // 1-默认收货地址，0-非默认地址
    private Integer defaultStatus;

    @ApiModelProperty(value = "收货人姓名", example = "张三")
    @NotBlank
    private String receiveName;

    @ApiModelProperty(value = "收货人手机号码", example = "13800138000")
    @NotBlank
    private String phone;

    @ApiModelProperty(value = "省份名称", example = "广东省")
    @NotBlank
    private String provinceName;

    @ApiModelProperty(value = "城市名称", example = "广州市")
    @NotBlank
    private String city;

    @ApiModelProperty(value = "区县名称", example = "天河区")
    @NotBlank
    private String region;

    @ApiModelProperty(value = "详细地址", example = "天河路123号")
    @NotBlank
    private String detailAddress;
}
